package wfw.cn.ktc_common.entity;

public enum ResultCode {
    //状态码
    SUCCESS(20000,"成功",true),
    FAIL(20001,"失败",false),
    USER_PASSWORD_ERROR(20002,"用户名或密码错误",false),
    ACCESS_ERROR(20003,"权限不足",false),
    //远程调用失败
    REMOTE_ERROR(20004,"远程调用失败",false),
    //重复操作
    REPEAT_ERROR(20005,"重复操作",false)
    ;
    private Integer code;
    private String message;
    private Boolean flag;



    ResultCode(Integer code, String message,Boolean flag) {
        this.code = code;
        this.message = message;
        this.flag=flag;
    }

    public Boolean getFlag() {
        return flag;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }


}
